package com.huoyun.car.service;

import java.util.List;

import com.huoyun.car.bean.NormallyTransportRoute;
import com.huoyun.car.dao.NormallyTransportRouteDao;
import com.huoyun.car.model.NormallyTransportRouteModel;

public class NormallyTransportRouteServiceImpl implements NormallyTransportRouteService {

	private NormallyTransportRouteDao normallyTransportRouteDao;
	
	public NormallyTransportRouteDao getNormallyTransportRouteDao() {
		return normallyTransportRouteDao;
	}

	public void setNormallyTransportRouteDao(
			NormallyTransportRouteDao normallyTransportRouteDao) {
		this.normallyTransportRouteDao = normallyTransportRouteDao;
	}

	@Override
	public void save(NormallyTransportRoute route) {
		// TODO Auto-generated method stub
		this.normallyTransportRouteDao.saveNormallyTransportRoute(route);
	}

	@Override
	public void updateAll(NormallyTransportRoute route) {
		// TODO Auto-generated method stub
		this.normallyTransportRouteDao.updateAll(route);
	}

	@Override
	public List<NormallyTransportRouteModel> getModelListByUserId(long userId) {
		// TODO Auto-generated method stub
		return this.normallyTransportRouteDao.getModelListByUserId(userId);
	}

	@Override
	public void deleteRouteById(long ntRouteId) {
		// TODO Auto-generated method stub
		this.normallyTransportRouteDao.deleteRouteById(ntRouteId);
	}

}
